/*
 * @Author: your name
 * @Date: 2021-03-28 19:05:36
 * @LastEditTime: 2021-03-29 14:06:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shop\training-group-5-warehouse\dianshang\src\api\bargain\index.js
 */
import axios from '../../utils/request'
import baseUrl from '../../utils/baseUrl'

//免费拿数据
function bargain() {
    // 返回值是Promise;
    return axios.get(baseUrl.url + '/api/bargain')
}

//推荐数据
function recommend() {
    // 返回值是Promise;
    return axios.get(baseUrl.url + '/api/recommend')
}

export default {
    bargain,
    recommend
}